package com.eastfair.venuebooking.dao;

import com.eastfair.boot.mapper.SuperMapper;
import com.eastfair.venuebooking.entity.SpacePriceUnit;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * 场地计价方式&价格(数据字典替代)
 * </p>
 *
 * @author linan
 * @date 2022-06-08
 */
@Repository
public interface SpacePriceUnitMapper extends SuperMapper<SpacePriceUnit> {

    List<SpacePriceUnit> selectBySpaceId(@Param("spaceId") Long spaceId);

    void updateBatchByIds(@Param("spacePriceUnitList") List<SpacePriceUnit> spacePriceUnitList);

    void   delBySpaceId(@Param("id") Long id);

}
